package router

import (
	"GoKill/service"
	"GoKill/test"
	"github.com/gin-gonic/gin"
)

func Router() *gin.Engine {
	r := gin.Default()
	r.GET("/ping", test.Ping)
	r.GET("/product/list", service.ProductList)
	r.POST("/login", service.Login)
	r.GET("/product/page", service.ProductPage)
	r.GET("/order/list", service.OrderList)
	r.GET("/product/:id", service.ProductById)
	r.POST("/product/:id", service.SecKill)
	return r
}
